package action;

import java.util.List;

import persistency.TaskRepository;

import model.Task;

import com.opensymphony.xwork2.ActionSupport;

public class TaskListAction extends ActionSupport{

	private List<Task> taskList;
public String execute() throws Exception {
		TaskRepository tr = new TaskRepository();
		taskList = tr.getAll();
		
		return SUCCESS;
	}
public List<Task> getTaskList() {
	return taskList;
}
public void setTaskList(List<Task> taskList) {
	this.taskList = taskList;
}


	
}
